<template>
	<view class="content">
		<!-- 提现金额 / 时间 -->
		<view class="item item1">
			
			<view class="name">
				提现金额
			</view>
			
			<view class="time">
				时间
			</view>
			
		</view>
		<view v-if="list.length">
			<view  class="item" v-for="item in list">
				
				<view class="name">
					¥{{item.amt || ''}}
				</view>
				
				<view class="time">
					{{ item.createTime}}
				</view>
				
			</view>
		</view>
		<view v-else class="empty">
			<u-empty text="暂无数据" mode="list"></u-empty>
		</view>
	</view>
</template>

<script>
	// import dayjs from 'dayjs'
	export default {
		data() {
			return {
			
				list: [],
			
			}
		},

		onLoad() {
			this.getList();
		},
	
		methods: {
			
			getList() {
				this.searDate = false;

				// 判断当前是否在请求，如果为true正在请求数据，就让他返回空，如果为false没在请求，就让它开始请求数据
				if (this.load) {
					return;
				}
				this.load = true;
				// 请求数据时，状态改为加载中状态
				this.status = "loading";

				this.$u.api
					.fetchWithDraw()
					.then((res) => {

						this.list = res.data;
						
					});
			},

		
		}


	}
</script>
<style>
	page {
		background:  #1f1f1f !important;
	}
</style>
<style scoped lang="scss">
	
.photo{
	width: 30px;
	height: 30px;
	display: block;
	margin: 7.5px auto;
}
	.tit{
		font-size: 13px;
		    font-family: PingFang SC-Medium, PingFang SC;
		    font-weight: 500;
		    color: #DDA36E;
		    line-height: 15px;
			padding-bottom: 10px;
	}
	.empty {
		padding: 100px 0;
	}

	.content {
		margin: 0 15px;
		border-radius: 8px;
		overflow: hidden;
		
		.item {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-size: 13px;
			font-family: PingFang SC-Regular, PingFang SC;
			font-weight: 400;
			color: #DDA36E;
			line-height: 19px;
			background: #342307;
			// border-bottom: 1px solid #382d0d;
			height: 45px;
			line-height: 45px;
			text-align: center;
			border-radius: 5px;
			margin-bottom: 5px;
		}
		.item1{
			// border-bottom: 1px solid #382d0d;
			background: none;
			font-size: 14px !important;
		}
		.name{
			flex: 1;
			// border-right: 1px solid #382d0d;
		}
			
		.time{
			flex: 1;
		}
	}
</style>
